Optimal. Leaf size=108 \[ -\frac {4 \sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {2} \sqrt {a+a \sin (c+d x)}}\right )}{a^{5/2} d}+\frac {2 \cos ^3(c+d x)}{3 a d (a+a \sin (c+d x))^{3/2}}+\frac {4 \cos (c+d x)}{a^2 d \sqrt {a+a \sin (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 108, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {2758, 2728,
212} \begin {gather*} -\frac {4 \sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {2} \sqrt {a \sin (c+d x)+a}}\right )}{a^{5/2} d}+\frac {4 \cos (c+d x)}{a^2 d \sqrt {a \sin (c+d x)+a}}+\frac {2 \cos ^3(c+d x)}{3 a d (a \sin (c+d x)+a)^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 2728
Rule 2758
Rubi steps
\begin {align*} \int \frac {\cos ^4(c+d x)}{(a+a \sin (c+d x))^{5/2}} \, dx &=\frac {2 \cos ^3(c+d x)}{3 a d (a+a \sin (c+d x))^{3/2}}+\frac {2 \int \frac {\cos ^2(c+d x)}{(a+a \sin (c+d x))^{3/2}} \, dx}{a}\\ &=\frac {2 \cos ^3(c+d x)}{3 a d (a+a \sin (c+d x))^{3/2}}+\frac {4 \cos (c+d x)}{a^2 d \sqrt {a+a \sin (c+d x)}}+\frac {4 \int \frac {1}{\sqrt {a+a \sin (c+d x)}} \, dx}{a^2}\\ &=\frac {2 \cos ^3(c+d x)}{3 a d (a+a \sin (c+d x))^{3/2}}+\frac {4 \cos (c+d x)}{a^2 d \sqrt {a+a \sin (c+d x)}}-\frac {8 \text {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,\frac {a \cos (c+d x)}{\sqrt {a+a \sin (c+d x)}}\right )}{a^2 d}\\ &=-\frac {4 \sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {2} \sqrt {a+a \sin (c+d x)}}\right )}{a^{5/2} d}+\frac {2 \cos ^3(c+d x)}{3 a d (a+a \sin (c+d x))^{3/2}}+\frac {4 \cos (c+d x)}{a^2 d \sqrt {a+a \sin (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.12, size = 96, normalized size = 0.89 \begin {gather*} -\frac {2 \cos (c+d x) \left (6 \sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {1-\sin (c+d x)}}{\sqrt {2}}\right )+\sqrt {1-\sin (c+d x)} (-7+\sin (c+d x))\right )}{3 a^2 d \sqrt {1-\sin (c+d x)} \sqrt {a (1+\sin (c+d x))}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.45, size = 112, normalized size = 1.04
method | result | size |
default | \(-\frac {2 \left (1+\sin \left (d x +c \right )\right ) \sqrt {-a \left (\sin \left (d x +c \right )-1\right )}\, \left (6 a^{\frac {3}{2}} \sqrt {2}\, \arctanh \left (\frac {\sqrt {a -a \sin \left (d x +c \right )}\, \sqrt {2}}{2 \sqrt {a}}\right )-\left (a -a \sin \left (d x +c \right )\right )^{\frac {3}{2}}-6 a \sqrt {a -a \sin \left (d x +c \right )}\right )}{3 a^{4} \cos \left (d x +c \right ) \sqrt {a +a \sin \left (d x +c \right )}\, d}\) | \(112\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 215 vs.
\(2 (93) = 186\).
time = 0.36, size = 215, normalized size = 1.99 \begin {gather*} \frac {2 \, {\left (\frac {3 \, \sqrt {2} {\left (a \cos \left (d x + c\right ) + a \sin \left (d x + c\right ) + a\right )} \log \left (-\frac {\cos \left (d x + c\right )^{2} - {\left (\cos \left (d x + c\right ) - 2\right )} \sin \left (d x + c\right ) - \frac {2 \, \sqrt {2} \sqrt {a \sin \left (d x + c\right ) + a} {\left (\cos \left (d x + c\right ) - \sin \left (d x + c\right ) + 1\right )}}{\sqrt {a}} + 3 \, \cos \left (d x + c\right ) + 2}{\cos \left (d x + c\right )^{2} - {\left (\cos \left (d x + c\right ) + 2\right )} \sin \left (d x + c\right ) - \cos \left (d x + c\right ) - 2}\right )}{\sqrt {a}} - {\left (\cos \left (d x + c\right )^{2} + {\left (\cos \left (d x + c\right ) + 8\right )} \sin \left (d x + c\right ) - 7 \, \cos \left (d x + c\right ) - 8\right )} \sqrt {a \sin \left (d x + c\right ) + a}\right )}}{3 \, {\left (a^{3} d \cos \left (d x + c\right ) + a^{3} d \sin \left (d x + c\right ) + a^{3} d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\cos ^{4}{\left (c + d x \right )}}{\left (a \left (\sin {\left (c + d x \right )} + 1\right )\right )^{\frac {5}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.51, size = 140, normalized size = 1.30 \begin {gather*} \frac {2 \, \sqrt {2} \sqrt {a} {\left (\frac {3 \, \log \left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right )}{a^{3} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} - \frac {3 \, \log \left (-\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right )}{a^{3} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} - \frac {2 \, {\left (a^{6} \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 3 \, a^{6} \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{a^{9} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}\right )}}{3 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\cos \left (c+d\,x\right )}^4}{{\left (a+a\,\sin \left (c+d\,x\right )\right )}^{5/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________